﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace ConsoleApplication1
{
   public abstract class items : IComparable
    {
        private class sHelper : IComparer
        {
            int IComparer.Compare(object a, object b)
            {
                return 0;
            }
        }
        int IComparable.CompareTo(object obj)
        {
            return 0;
        }
        public int id;
        public double Cost;
        public int CopyCount; //число копий  
        public virtual string SaveToCSV()
        {
            return "";
        }
        public virtual void LoadFromCSV(string[] p)
        {
        }

        public virtual string SaveToXML()
        {
            return "";
        }
        public virtual void LoadFromXML(string[] p)
        {
        }
        public virtual string SaveToJSON()
        {
            return "";
        }
        public virtual void LoadFromJSON(string[] p)
        {
        }
        public virtual string SaveToYAML()
        {
            return "";
        }
        public virtual void LoadFromYAML(string[] p)
        {
        }
    }
}
